@import url('./variable.less');
.embed-boss-layout {
  .ant-layout-header {
    // ant 样式
    flex: 0 0 48px !important;
    height: 48px;
    // TODO: boss和企业协会要求 主题色不一样
    // background-color: @primaryColor;
    // line-height: 48px;
    color: white;
    padding-inline: 32px !important;
  }

  // aside
  .ant-layout-sider {
    border-right: 1px solid rgba(5, 5, 5, 0.06);
    .ant-menu-light.ant-menu-root.ant-menu-inline {
      border-right: none;
    }
    &.ant-layout-sider-light {
      background-color: #fffbf9;
    }

    // slide 收起/展开按钮
    .collapse-trigger-container {
      position: absolute;
      width: 8px;
      background-color: transparent;
      height: 100%;
      right: -4px;
      top: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1;

      &:hover {
        .collapse-trigger {
          opacity: 1;
          transition: all 0.2s;
        }
      }

      .collapse-trigger {
        opacity: 0;
        cursor: pointer;
        transition: all 0.2s;
        width: 10px;
        height: 60px;
        background: #bfc5cc;
        border-radius: 5px;
        border: 1px solid #afb5bd;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }

    // 菜单
    .ant-menu_content {
      height: 100%;
      overflow-y: auto;
    }
  }


  //content
  .ant-layout-content {
    display: flex;
    flex-direction: column;

    .embed-boss-tabs {
      .ant-tabs-nav {
        margin: 0;
        background-color: #ffffff;

        &::before {
          border-bottom-color: white;
        }

        .ant-tabs-tab {
          border-radius: 0px !important;
          border: none;
          border-right: 1px solid #f0f0f0;
        }
      }
    }
  }

  .embed-boss-page-container {
    flex: auto;
    // padding: 16px;
    overflow: hidden;
    .isInIframe {
      padding: unset !important;
    }
    .ym_detail_container {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      height: 100%;
      background: #eff2f5;
      box-sizing: border-box;
      padding: 16px 16px 0 16px;
      min-width: 932px;
      // 头
      .ym_header_box {
        width: 100%;
        font-size: 16px;
        color: #333;
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: space-between;
        padding: 11px 20px;
        background: white;
        .header_box_left {
          .left_back {
            display: flex;
            flex-flow: row nowrap;
            align-items: center;
            cursor: pointer;
            .back_title {
              margin-left: 8px;
            }
          }
        }
        .header_box_center {
          font-size: 16px;
          font-weight: 600;
          color: #333333;
        }
        .header_box_right {
        }
      } 
      // content     
      .ym_detail_grid {
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        overflow: hidden;
        // background-color: white;
        overflow-y: auto;
        // #fff7e5;
        max-width: 1170px;
        width: 100%; //内容太少，宽度无法撑开时
        .ant-form-item {
          .ant-form-item-label {
            width: 120px;
          }
        }
        .ym_collapse{

          .ant-collapse-item{
            background-color: white;
            border-bottom: none !important;
            margin-bottom: 12px;
            .panel_item_delete_icon{
              &:hover{
                color: @primaryColor;
              }
            }
          }
        }


        .grid_item {
          background: white;
          padding: 12px 16px;
          margin-bottom: 12px;
        }
      }
      //footer
      .yn_detail_operation_footer {
        width: 100%;
        height: 60px;
        background: #ffffff;
        box-shadow: 0px 0px 6px 4px rgba(219, 219, 219, 0.5);
        background-color: #fff;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: center;
        // margin-top: 16px;
      } 
    }   
  }

}

